// * 模版字符串

const { preson } = require("./a");

// let str = 'I am';

// let name = 'isen';

// console.log(str + ' ' + name);

// console.log(`${str} ${name}`);

// let username = "222222"
// let str1 =  "<div class=\"test\">" +
//             `<span>${username}：</span><input/>`+
//             "</div>"+
//             "<div class=\"test\">"+
//             "<span>密码：</span><input type=\"password\"/>"+
//             "</div>"

// console.log(str1);
var brith = 1998;
let obj ={
    brith:1999,
    getAge: ()=>{
        let b=this.brith
        console.log('b==>',b);
        let fn = () =>{
            console.log('inner',this.brith);
            console.log(new Date().getFullYear - this.brith)
        };
        return fn();
    }
};
obj.getAge();


let array = [11,22,11,2,3,2,33,2,4,5,6,11,33,0]
let set = new Set();
array.forEach((item)=>{
    set.add(item)
})
console.log(set);


//数组去重复
// let array = [2,3,2,8,4,3,2];
// let set = new Set();
// array.forEach((item)=>{
//     set.add(item);
// })
// console.log(set);